package com.kould.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kould.enity.Archive;
import com.kould.enity.Article;

import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.concurrent.ExecutionException;

public interface ArticleService extends IService<Article> {

    IPage<Article> findArticlesForKache(IPage<Article> page);

    Article findArticleByIdForKache(Long id);

    IPage<Article> findArticlesTitleLikeForKache(IPage<Article> page,String title);

    IPage<Article> findArticlesForSpring(IPage<Article> page);

    Article findArticleByIdForSpring(Long id);

    IPage<Article> findArticlesTitleLikeForSpring(IPage<Article> page,String title);

    Integer insertArticleForKacheAndSpring(Article article);

    Integer insertBatchArticleForKacheAndSpring(List<Article> list);

    Integer updateArticleForKacheAndSpringByTitle(Article article);

    Integer updateArticleForKacheAndSpringById(Article article);

    Integer deleteArticleForKacheAndSpringByTitle(String title);

    Integer deleteArticleForKacheAndSpringById(Long id);


}
